package com.tensquare.qa.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author:zimmor
 * @Date: 2021/3/15 7:58
 * @Description
 * @version: 1.0.0
 */
@FeignClient(name = "tensquare-base", fallback = LabelHystrix.class)
public interface LabelClient {
    @RequestMapping(method = RequestMethod.GET, value = "/label/{id}")
    public Result findLabelById(@PathVariable(value = "id") String id);
}
